package com.tebiecloud.order.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 订单核销记录
 * @author tebie
 * @date 2019-10-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderWriteOffLog extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "order_write_off_id", type = IdType.ID_WORKER)
    private Long orderWriteOffId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 订单商品id
     */
    private Long orderGoodsId;

    /**
     * 门店id
     */
    private Long storeId;

    /**
     * 核销人id
     */
    private Long userId;

    /**
     * 核销人名称
     */
    private String userName;

    /**
     * 核销的订单费用（单位：分）
     */
    private Integer price;

    /**
     * 支付类型：1微信支付，2现金支付，3刷卡支付
     */
    private Integer payType;

    /**
     * 收货人
     */
    private String receiver;

    /**
     * 收货人头像
     */
    private String receiverHeadimgurl;

}
